package net.comm.group.db;


import java.sql.ResultSet;
import java.sql.SQLException;





import net.comm.group.bean.BaseGroupsGroupByFirsort;

import org.sakaiproject.db.api.SqlReader;

public class DbGroupGroupByFirsortService implements SqlReader
{

	/**
	 * Read from the result one set of fields to create a Resource.
	 * 
	 * @param result
	 *        The Sql query result.
	 * @return The Resource object.
	 */
	public Object readSqlResultRecord(ResultSet result)
	{
		try
		{
			
			int  firsort = result.getInt(1);			//
			int  total = result.getInt(2);			//
	

			// create the Resource from these fields
			return new BaseGroupsGroupByFirsort( firsort,total);
		}
		catch (SQLException e)
		{
			return null;
		}
		
	}
}
